package com.bjpowernode.drp.datadict.manager;

import java.util.List;

import com.bjpowernode.drp.datadict.dao.DataDictDao;
import com.bjpowernode.drp.model.AbstractDataDict;
import com.bjpowernode.drp.model.ItemCategory;
import com.bjpowernode.drp.model.ItemUnit;
import com.bjpowernode.drp.util.BeansFactory;

public class DataDictManagerImp implements DataDictManager {
	
	private DataDictDao dataDictDao;
	
	public DataDictManagerImp(){
		dataDictDao = (DataDictDao)BeansFactory.getInstance().getDao(DataDictDao.class);
	}

	public AbstractDataDict getDataDictById(int id) {
		return dataDictDao.getDataDictById(id);
	}

	public List<ItemCategory> getItemCategoryList() {
		return dataDictDao.getItemCategoryList();
	}

	public List<ItemUnit> getItemUnitList() {
		return dataDictDao.getItemUnitList();
	}

}
